package app

import (
	"energy-amiot-platform/middleware"

	"github.com/gin-gonic/gin"
)

func Routers(r *gin.Engine) {
	// 只允许管理员访问
	group := r.Group("app", middleware.AuthToken())
	group.POST("", create)
	group.GET("", pagingQuery)
	group.GET(":id", findByKey)
	group.DELETE(":id", deleteByKey)
}
